add fake peer injection mechanism#9
Conversation
|
good start but that doesnt work at it is. I'd say create a new set of functions based on the signature: which means adding the ones we want right now: and then pipe the list of real peers through it |
|
Thanks for your review! Hopefully it's better with this new commit! |
|
much better! this should be enough but if you want to give it the last twist I'd say get rid of the if else, which is not very common in elixir and directly match the config variable with a case:
|
|
There you go :) I hope that the code formatting is good as well! |
|
all good, in it goes! |
I directly added a block in
get_peers(), it seemed to make more sense to me.This is my first time writing some elixir, let me know if there's anything to change!
Closes #3